package com.matt.domain.course;

import com.matt.commons.model.Domain;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.util.Date;

/**
 * *******************************
 * Created by Ron.
 * form com.matt
 * on 2017/9/5
 * 课程计划
 * *******************************
 */
@Entity
@Table(name = "course_plan")
@Data
@EqualsAndHashCode(callSuper = true)
public class CoursePlan extends Domain {

    @Column(columnDefinition = " varchar(50)  COMMENT ' 早教课程题目（冗余） ' ")
    private String courseName;

    @Column(columnDefinition = " int DEFAULT 1 COMMENT ' 类型：1，SAT早教课程，2，园区自建，3，公共课程 ' ")
    private Integer courseType;

    @Column(columnDefinition = " varchar(255) COMMENT ' 类型名称 ' ")
    private String typeName;

    @Column(columnDefinition = " varchar(32) COMMENT ' 课程id 和type一起查询 ' ")
    private String courseEarlyId;

    @Column(columnDefinition = " datetime  COMMENT ' 开始时间 ' ")
    private Date beginTime;

    @Column(columnDefinition = " datetime  COMMENT ' 结束时间 ' ")
    private Date endTime;

    @Column(columnDefinition = " varchar(32) COMMENT ' 对应教师id ' ")
    private String teacherId;

    @Column(columnDefinition = " varchar(255) COMMENT ' 老师名称 ' ")
    private String teacherName;

    @Column(columnDefinition = " varchar(32) COMMENT ' 对应教学区域id ' ")
    private String teachingAreaId;

    @Column(columnDefinition = " varchar(32) COMMENT ' 对应园区id ' ")
    private String areaId;

    @Column(columnDefinition = " datetime  COMMENT ' 课程时间 ' ")
    private Date courseDate;

    @Column(columnDefinition = " int DEFAULT 0 COMMENT ' 备课状态 0：未备课，1：已备课 ' ")
    private Integer prepareStatus = 0;

    @Column(columnDefinition = " int DEFAULT 0 COMMENT ' 备课状态 0：进行中，1：已完成，2：未处理 ' ")
    private Integer courseStatus = 0;

    @Column(columnDefinition = " datetime  COMMENT ' 开始上课时间 ' ")
    private Date beginCourseTime;
}
